<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>func_class</title>
</head>
<body>

</body>
<script>
    let person = new class {
        constructor(name) {
            this.name = name;
        }

        sayName() {
            console.log(this.name);
        }
    }('章程');
    person.sayName();
</script>
</html>